 <div class="sidebar" style="background-color:#fff; padding-bottom:0px; border:1px solid #ddd; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);">
 <ul class="sidebar-menu" id="chan">
		<li class="treeview"><a href="index.php?a=resource.classifyList"><i class="fa fa-list"></i>分类设置</a></li>
		{%foreach from=$grade key=key item=value%}
		<li class="treeview {%if $grade_id==$key%}active{%/if%}">
		  <a href="#">
			<i class="glyphicon glyphicon-align-left"></i> <span>{%$value.grade_name%}</span> <i class="fa fa-angle-left pull-right"></i>
		  </a>
		  {%foreach from=$value.subject key=ka item=va%}
			  <ul class="treeview-menu" style="background-color:#fff;">
				<li  {%if $subject_id==$ka%}class="active"{%/if%}>
					<a href="index.php?a=resource.list&grade_id={%$key%}&subject_id={%$ka%}">
						<i class="fa fa-angle-right"></i>{%$va%}
					</a>
				</li>
			  </ul>
		  {%/foreach%}
		</li>
		{%/foreach%}
  </ul>
</div>